<?php

namespace App\Http\Controllers;

abstract class Controller
{
    public function success(array $data = [], string $msg = '操作完成'): array
    {
        return ['code' => 20200, 'msg' => $msg, 'data' => $data];
    }
}
